package de.homelabs.hlmodules.cms.dev;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement
public class HLJAXBTemplateElement {

	@XmlElement(required = false)
	private int id;
	@XmlElement(required = true)
	private String name;
	@XmlElement(required = true)
	private String templateKey;
	@XmlElement(required = true)
	private String templateUrl;
	
	/**
	 * default constructor
	 */
	public HLJAXBTemplateElement(){}
	
	/**
	 * constructor
	 * @param id
	 * @param name
	 * @param templateKey
	 * @param templateUrl
	 */
	public HLJAXBTemplateElement(int id, String name, String templateKey,
			String templateUrl) {
		super();
		this.id = id;
		this.name = name;
		this.templateKey = templateKey;
		this.templateUrl = templateUrl;
	}
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getTemplateKey() {
		return templateKey;
	}
	public void setTemplateKey(String templateKey) {
		this.templateKey = templateKey;
	}
	public String getTemplateUrl() {
		return templateUrl;
	}
	public void setTemplateUrl(String templateUrl) {
		this.templateUrl = templateUrl;
	}
}
